package hcn.protocol.ods.casehistory;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @program: 20190427StandardEdition
 *
 * @description: 病历审核状态
 *
 * @author: zhusm@bsoft.com.cn
 *
 * @create: 2019-06-17 11:26
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum BLCheckStatus {
    UNREVIEWED(1,"未审核"),PASS(2,"通过"),OVERRULE(3,"驳回"),CANCELLED(4,"已取消"),CHECKING(5,"正在审核中"),MODIFTEDUNREVIEWED(6,"已修改未审核");

    private int code;
    private String description;

    public static final BLCheckStatus getDescription(int code){
        for (BLCheckStatus type : BLCheckStatus.values()){
            if (type.getCode() == code){
                return type;
            }
        }
        return null;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

}
